
package ui.activity.poscontrol.adapter;

import android.content.Context;

import net.ck.hzq.R;

import java.util.ArrayList;
import java.util.List;

import base.BaseViewHolder;
import base.SuperBaseAdapter;


/**
 *POS查询列表适配器
 * Created by chenjian on 19/2/27
 */
public class OrderPosInfoAdapter extends SuperBaseAdapter<String> {

    List<String> mData = new ArrayList<>();
    Context mContext;
    public OrderPosInfoAdapter(Context context, List<String> data) {
        super(context, data);
        mContext = context;
        mData = data;
    }

    @Override
    protected void convert(BaseViewHolder holder, final String item, final int position) {
        holder.setText(R.id.device_no, item);//终端编号
    }


    @Override
    protected int getItemViewLayoutId(int position, String item) {
        return R.layout.item_orderposinfo_list;
    }

}
